import {createRouter,createWebHistory} from 'vue-router'

const router = createRouter({
  history:createWebHistory(),
  routes:[
    {
      path:'/',
      redirect:'/login'
    },
    {
      path:'/login',
      component:()=>import("../views/user/LoginView.vue")
    },
    {
      path:'/register',
      component:()=>import("../views/user/RegisterView.vue")
    },{
      path:'/userInfo',
      component:()=>import("../views/user/UserInfoView.vue")
    },
    {
      path:'/main',
      component:()=>import("../views/main/MainView.vue")
    }
  ]
})

export default router